<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>共享文件</title>
    <style>
        img{
            height:200px;
        }
    </style>
</head>
<body>
<div>
    <table>
        <tr><th>分享链接</th><th>文件编号</th><th>链接密码</th><th colspan="2">操作</th></tr>
        <span th:each="info:${infolist}">
        <tr>
            <th><span th:text="${info.url}"/></th>
            <th><span th:text="${info.fileid}"/></th>
            <th>[[${info.password}]]</th>
            <th><button th:onclick="'javascript:modifyForm('+${info.id}+')'">修改</button></th>
            </button></th>
            <th><button th:onclick="'javascript:deleteLink('+${info.id}+')'">删除</button></th>
            </button></th>
        </tr>
    </span>
    </table>

</div>
</body>
<script th:inline="javascript">
    function modifyForm(id){
    location.href="/share/modifyForm?id="+id;
    }

    function deleteLink(id){
    location.href="/share/deleteLink?id="+id;
    }

</script>
</html>